package com.example.spingbootvue.service.Resume;

import com.example.spingbootvue.entity.Resumemsg;
import com.example.spingbootvue.mapper.UserResumeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class resumeservice {
    @Autowired
    UserResumeMapper userResumeMapper;
            public int selectoffer(String offer,Integer id){
                Resumemsg resume =userResumeMapper.selectoffer(offer);
                if(resume != null){
                    return 0;
                }else {

                    return userResumeMapper.updateoffer(offer,id);
                }
            }
}
